<?php
!defined('P_W') && exit('Forbidden');
require_once MODE . '/base/frontcontroller.php';
/**
 * 开通页面controller
 */
class Checkincontroller extends FrontController {
	var $_layoutFile = 'checkin';
	var $_seopage;
	var $_defaultSeo;
	var $_seoname;
	function run() {
		$this->_viewer->current['sale'] = 'class="current"';
		list($this->_seopage,$this->_defaultSeo,$this->_seoname) = $this->setSeoParams('index');
	}
	
	function export() {
		$checkinHelper = House::loadClass('checkinhelper', 'helper');
		$checkinHelper->export();
		exit();
	}
	
	function _after(){
		houseSeoSettings($this->_seopage,$this->_defaultSeo,$this->_seoname);
	}
	
	function setSeoParams($seopage='index',$name = '',$area = 0,$village = ''){
		$seopage = $seopage ? $seopage : 'index';
		$title = $keywords = $descript;
		if($seopage == 'index' || $seopage == 'thread'){
			$title = "开通房产经纪人";
			$keywords = "房产经纪人,开通房产经纪人,房产中介,开通房产中介";
			$descript = "开通房产经纪人说明和联系方式。";
		}
		$defaultSeo = array('title' => $title , 'metaDescription' => $descript, 'metaKeywords' => $keywords);
		return array($seopage,$defaultSeo,$name);
	}
}